﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCategory.ascx.cs" Inherits="Website.uc.ucCategory" %>
<style type="text/css">
    .style1
    {
        width: 80%;
    }
    .style2
    {
        width: 500px;
    }
    .style3
    {
    }
    .style4
    {
        width: 521px;
    }
</style>

<table class="style1">
    <tr>
        <td>
            <table class="style1">
                <tr>
                    <td valign="top" class="style4">
                        <table class="style2">
                            <tr>
                                <td class="style3" colspan="2">
                                    <asp:Label ID="lblMessage" runat="server" Font-Bold="True" Font-Size="Medium" 
                                        ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Cate Name</td>
                                <td>
                                    <asp:TextBox ID="txtCateName" runat="server" TextMode="MultiLine" Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    Cate Status</td>
                                <td>
                                    <asp:TextBox ID="txtCateStatus" runat="server" TextMode="MultiLine" 
                                        Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    <asp:Label ID="lblId" runat="server" Visible="False"></asp:Label>
                                </td>
                                <td>
                                    <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
&nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" onclick="btnCancel_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <asp:GridView ID="GridView1" runat="server" Width="100%" 
                            DataKeyNames="CateId" onrowdeleting="GridView1_RowDeleting" 
                            onselectedindexchanging="GridView1_SelectedIndexChanging" 
                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                            CellPadding="4" ForeColor="Black" GridLines="Horizontal">
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:CommandField ShowDeleteButton="True" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F7F7F7" />
                            <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                            <SortedDescendingCellStyle BackColor="#E5E5E5" />
                            <SortedDescendingHeaderStyle BackColor="#242121" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

